<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.*" %>
<%@ page import="java.util.*" %>

<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.service.*" %>
<%@ page import="com.chanyachting.emall.serviceImpl.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title>系统参数列表</title>

	 
<script type="text/javascript" src="<%=root %>/js/jquery-1.3.2.min.js" charset="utf-8">//ADCRM</script>
<script type="text/javascript" src="<%=root %>/js/jquery.form.js" charset="utf-8">//ADCRM</script>
	
	
	<script language="javascript" type="text/javascript">



	</script>


</head>

<body>
<div class="tab_box">
	<div class="tab_menu">
    	<a href="#" class="current">系统参数列表</a>
    </div>
	
</div>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="yes_border">
 
  <tr>
    <td colspan="6" align="center" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <th width="15%" align="center">编号</th>
    <th align="center">参数名称</th>
    <th width="15%" align="center"><p>参数值</p></th>
    <th width="10%" align="center">参数状态</th>
    <th width="25%" align="center">参数说明</th>
    <th width="15%" align="center">操作</th>
  </tr>
  
  <%
  
  //获得所有系统参数列表
  List list=new ArrayList();
  
  SystemparametersService sys=new SystemparametersServiceImpl();
  
  list=sys.getAllSystemparameters();
  
  %>
  
  <%
  
  	Systemparameters  sy=null;
  
  	if(list!=null && list.size()>0){
  		
  		
  		for(int i=0;i<list.size();i++){
  			
  			sy=(Systemparameters)list.get(i);
  %>
  <tr>
  <form name="<%=i %>" action="<%=root %>/adminBackend/systemparameterUpdate.do" method="post">
  
  	<input type="hidden" name="id" value="<%= sy.getId() %>" />
  	<input type="hidden" name="name" value="<%= sy.getName() %>" />
  	<input type="hidden" name="sydesc" value="<%= sy.getSydesc() %>" />
  
    <td align="center"><%= sy.getId() %></td>
    <td><%= sy.getName() %></td>
    <td align="center"><input name="value" value="<%= sy.getValue() %>" /></td>
    <td align="center">
    	<select name="status">
    		<option value="0" <%=sy.getStatus()==0?"selected":"" %>>禁用</option>
    		<option value="1" <%=sy.getStatus()==1?"selected":"" %>>启用</option>
    	</select>
    </td>
    <td align="center"><%= sy.getSydesc() %></td>
    <td align="center"><input type="submit" value="修改" /></td>
   </form>
  </tr>
  
  <%
  			
  		}

  	}
  
  %>
  
 
 
  <tr>
    <td colspan="6" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center"></td>
      </tr>
    </table></td>
  </tr>
 
</table>
<p>&nbsp;</p>
</body>
</html>

